<template>
  <div class="login">
    <!-- logo -->
    <div class="logo"><img src="../assets/image/logo.png" alt="logo"></div>
    <!-- 账号与密码 -->
    <div>
      <div class="input"> <img class="input-icon" src="../assets/image/icon_user.png" alt=""><input type="text"
          placeholder="请输入用户名"></div>
      <div class="input"><img class="input-icon" src="../assets/image/icon_pwd.png" alt=""><input type="password"
          placeholder="请输入密码"></div>
    </div>
    <!-- 注册按钮 -->
    <div><button class="login-btn">注册</button></div>
    <div class="other">
      <div><a href="">前往登录</a></div>
    </div>
  </div>
</template>

<script setup lang="ts">

</script>

<style scoped>
a {
  text-decoration: none;
  color: red;
}

.login {
  margin: 0 20px;
}

.logo {
  text-align: center;
  padding: 100px 0;
}

.input {
  display: flex;
  align-items: center;

  .input-icon {
    width: 20px;
    height: 20px;
    margin: 0 20px;
    margin-bottom: 20px;

  }

  input {
    width: 80%;
    height: 30px;
    align-content: center;
    margin-bottom: 20px;
    border: none;
  }
}


.login-btn {
  width: 100%;
  height: 40px;
  background-color: red;
  border: none;
  border-radius: 8px;
  color: white;
}

.other {
  display: flex;
  justify-content: space-between;
}
</style>